package net.omnivention.proxy;

import java.net.ServerSocket;
import java.net.Socket;

import org.apache.log4j.Logger;

public class OmniProxy {
	private static Logger logger = Logger.getLogger(OmniProxy.class);

	public static void main(String[] argv) throws Exception {
		ServerSocket ss = new ServerSocket(8000);
		logger.info("Listening on 8000");

		while (true) {
			Socket clientSocket = ss.accept();
			ProxyConnector p = new ProxyConnector(clientSocket);
			Thread t = new Thread(p);
			t.start();
		}
	}
}
